<?php
$this->breadcrumbs=array(
	'Orders'=>array('index'),
	$model->name,
);

$this->menu=array(
	array('label'=>'List Orders', 'url'=>array('index')),
	array('label'=>'Create Orders', 'url'=>array('create')),
	array('label'=>'Update Orders', 'url'=>array('update', 'id'=>$model->order_id)),
	array('label'=>'Delete Orders', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->order_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage Orders', 'url'=>array('admin')),
);
?>

<h1>View Orders #<?php echo $model->order_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'order_id',
		'order_sn',
		'user_id',
		'name',
		'telephone',
		'total',
		array(
			'name'=>'Order_status',
			'value'=>$model->orderStatusToText(),
			),
		array(
			'name'=>'Shipping_status',
			'value'=>$model->shippingStatusToText(),
			),
		array(
			'name'=>'Pay_status',
			'value'=>$model->pay_status?"payed":"unpayed",
			),
		array(
			'name'=>'Confirm_status',
			'value'=>$model->confirm_status?"confirmed":"unconfirmed",	
			),
		array(
			'name'=>'Country',
			'value'=>'中国',
			),
		array(
			'name'=>'Province',
			'value'=>$model->getProvinceText(),
			),
		array(
			'name'=>'City',
			'value'=>$model->getCityText(),
			),
		array(
			'name'=>'District',
			'value'=>$model->getDistrictText(),
			),
			'address',
			'zipcode',
		array(
			'name'=>'Order_time',
			'value'=>date("Y:m:d H:i:s",$model->order_time),
		),
		array(
			'name'=>'Pay_time',
			'value'=>date("Y:m:d H:i:s",$model->pay_time),
		),
		array(
			'name'=>'Shipping_time',
			'value'=>date("Y:m:d H:i:s",$model->shipping_time),
			),
		array(
			'name'=>'Confirm_time',
			'value'=>date("Y:m:d H:i:s",$model->confirm_time),
			),
	),
)); ?>
